<template>
  <div class="container_main">
    <p>{{ title }}</p>
    <p>路由: {{ $route.fullPath }}</p>
    <el-button @click="console_log_router">打印路由</el-button>

    <el-button>
      <router-link to="/">Home</router-link>
    </el-button>

    <el-button>
      <router-link to="/about">About</router-link>
    </el-button>

    <router-view></router-view>
  </div>
</template>

<script>
export default {
  data() {
    return {
      title: "App.vue title is here!",
    };
  },
  methods: {
    console_log_router() {
      console.log(this.$route);
      return this.$route;
    },
  },
  computed: {},
  mounted() { },
};
</script>

<style lang="scss">
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #aaa;
}
</style>